<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>淘宝轮播图的做法</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            position: relative;
            width: 1200px;
            height: 500px;
            background-color: skyblue;
            margin: 100px auto;
        }

        .box img {
            width: 1200px;
            height: 500px;
        }

        /* 左箭头制作方法 */
        .left {
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -15px;
            width: 20px;
            height: 30px;
            color: white;
            background-color: rgba(0, 0, 0, .3);
            text-decoration: none;
            text-align: center;
            line-height: 30px;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;

        }

        /* 右箭头制作方法 */
        .right {
            position: absolute;
            right: 0;
            top: 50%;
            margin-top: -15px;
            width: 20px;
            height: 30px;
            color: white;
            background-color: rgba(0, 0, 0, .3);
            text-decoration: none;
            text-align: center;
            line-height: 30px;
            border-top-left-radius: 15px;
            border-bottom-left-radius: 15px;

        }

        /* 并集选择器可以节省代码
        left,
        right {} */
        .dot {
            position: absolute;
            bottom: 15px;
            left: 50%;
            margin-left: -35px;
            width: 70px;
            height: 13px;
            background-color: rgba(255, 255, 255, .3);
            border-radius: 7px;
        }
        li {
            list-style: none;
        }
        .dot li {
            float: left;
            width: 8px;
            height: 8px;
            line-height: 8px;
             background-color: #fff;
             margin: 3px;
        }
        .dot .selected {
            background-color: #ff5000;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="images/taobao800.png" alt="">
        <!-- 左侧标签，可以使用链接的形式进行制作 -->
        <a href="#" class="left">&lt;</a>
        <!-- 右侧标签，可以使用链接的形式进行制作 -->
        <a href="#" class="right">&gt;</a>
        <ul class="dot">
            <li></li>
            <li></li>
            <li class="selected"></li>
            <li></li>
            <li></li>
        </ul>

    </div>
</body>

</html>